//
//  SportModel.m
//  BobNews
//
//  Created by lanou3g on 16/5/7.
//  Copyright © 2016年 YJC. All rights reserved.
//

#import "SportModel.h"
#import "SpImageModel.h"
#import "SpMoreModel.h"

@implementation SportModel

+(instancetype)modelWithDictionary:(NSDictionary *)dictionary{
    NSArray *array = dictionary[@"imgextra"];
    if (array) {
        SpMoreModel *moreModel = [[SpMoreModel alloc]init];
        
        [moreModel setValuesForKeysWithDictionary:dictionary];
        
        return moreModel;
    }
    else{
        SpImageModel *imageModel = [[SpImageModel alloc]init];
        [imageModel setValuesForKeysWithDictionary:dictionary];
        return imageModel;
    }
    return nil;
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
}

@end
